package com.hsc.yalebao.zhuanpan;

import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;
import com.hsc.yalebao.base.BaseActivity;
import java.io.PrintStream;

public class DialogActivity extends BaseActivity
{
  private String mDeStr = "恭喜发财";
  private int mNum = 0;

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903114);
    Bundle localBundle = getIntent().getExtras();
    if (localBundle != null)
    {
      this.mDeStr = localBundle.getString("content");
      this.mNum = localBundle.getInt("num");
    }
    TextView localTextView1 = (TextView)findViewById(2131100055);
    ImageView localImageView1 = (ImageView)findViewById(2131100054);
    ImageView localImageView2 = (ImageView)findViewById(2131100059);
    ImageView localImageView3 = (ImageView)findViewById(2131100060);
    TextView localTextView2 = (TextView)findViewById(2131100056);
    localTextView1.setText(this.mDeStr);
    localTextView2.setText("★您可以抽奖 " + this.mNum + " 次★");
    new DisplayMetrics();
    DisplayMetrics localDisplayMetrics = getResources().getDisplayMetrics();
    localImageView1.setLayoutParams(new RelativeLayout.LayoutParams(localDisplayMetrics.widthPixels, 2 * localDisplayMetrics.heightPixels / 3));
    localImageView2.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        Intent localIntent = new Intent(DialogActivity.this, ZhuanPanActivity.class);
        DialogActivity.this.startActivity(localIntent);
        DialogActivity.this.finish();
        DialogActivity.this.overridePendingTransition(17432576, 17432577);
      }
    });
    localImageView3.setOnClickListener(new View.OnClickListener()
    {
      public void onClick(View paramAnonymousView)
      {
        DialogActivity.this.finish();
        DialogActivity.this.overridePendingTransition(17432576, 17432577);
      }
    });
  }

  protected void onDestroy()
  {
    super.onDestroy();
  }

  public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
  {
    if (paramInt == 4)
    {
      System.out.println("按下了back键   onKeyDown()");
      finish();
      overridePendingTransition(17432576, 17432577);
      return false;
    }
    return super.onKeyDown(paramInt, paramKeyEvent);
  }

  protected void onResume()
  {
    super.onResume();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.zhuanpan.DialogActivity
 * JD-Core Version:    0.6.2
 */